//
//  CBattleUI.cpp
//  beast_tamer
//
//  Created by chiawei.tseng on 13/2/7.
//
//

#include "CBattleUIHud.h"
#include "CWndUI.h"
#include "point.h"

CBattleUIHud::CBattleUIHud()
{
    
}

CBattleUIHud::~CBattleUIHud()
{

}

bool CBattleUIHud::init()
{
    setAnchorPoint(ccp(0, 0));
    
    CWndUI*   plus   = CWndUI::CreateWndUI(plusName,fPoint(plus_X,plus_Y));
    CWndUI*   btnBg  = CWndUI::CreateWndUI(btnBgName,fPoint(btnBg_X,btnBg_Y));
    
    //todo
    CWndUI*   hp_r   = CWndUI::CreateWndUI(hp_rName,fPoint(hp_r_X,hp_r_Y));
    CWndUI*   hp_g   = CWndUI::CreateWndUI(hp_gName,fPoint(hp_g_X,hp_g_Y));
    
    addChild(plus);
    addChild(btnBg);
    
    addChild(hp_r);
    addChild(hp_g);
    
    return true;
}